package com.zyh.service;

import com.zyh.Repository.NACheckReqpsitory;
import com.zyh.entity.NACheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NACheckService {
    @Autowired
    NACheckReqpsitory naCheckReqpsitory;

    public NACheck save(NACheck naCheck) {
        return naCheckReqpsitory.save(naCheck);
    }

    public List<NACheck> findAll(){
        return naCheckReqpsitory.findAll();
    }

    public List<NACheck> findAllBySno(int info) {
        return naCheckReqpsitory.findAllBySno(info);
    }

    public List<NACheck> findAllBySname(String info) {
        return naCheckReqpsitory.findAllBySname(info);
    }
}
